CC=gcc
CFLAGS=-c -Wall
LDFLAGS=-lm
SOURCES=transmitter_receiver.c ofdm_system.c inverse_constellation_mapping.c constellation_mapping.c des.c FFT.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=tx

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.c.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *o tx
